import React, {useEffect} from "react";
import {useEventCenter} from './event-center';

const Test = () => {
  const eventCenter = useEventCenter('test');
  console.log(eventCenter);
  useEffect(() => {
    eventCenter.on('testx', () => console.log('testx'));
  }, [eventCenter]);
  return (
    <div>123</div>
  );
};

export default Test;